﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_Model.VRDD.InputDto._0427
{
    /// <summary>
    ///  保存关注记录
    /// </summary>
    public class AddAttention
    {
        /// <summary>
        ///  关注用户ID
        /// </summary>
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请输入用户user_id")]//大于0正则表达式
        public int user_id { get; set; }
        /// <summary>
        ///  被关注用户ID
        /// </summary>
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请输入用户id")]//大于0正则表达式
        public int id { get; set; }
        /// <summary>
        ///  关注标记
        ///  0=取消关注；1=加关注
        /// </summary>
        [RegularExpression("^([0,1])$", ErrorMessage = "请正确输入关注标记：0=取消关注；1=加关注")]//大于0正则表达式
        public int fan_status { get; set; }
    }
    /// <summary>
    ///  保存点赞用户
    /// </summary>
    public class StarParam
    {
        /// <summary>
        ///  点赞用户ID
        /// </summary>
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请输入用户user_id")]//大于0正则表达式
        [Required]
        public int user_id { get; set; }
        /// <summary>
        ///  被点赞用户ID
        /// </summary>
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请输入用户id")]//大于0正则表达式
        [Required]
        public int id { get; set; }
        /// <summary>
        ///  标记
        ///  0=取消点赞；1=添加点赞
        /// </summary>
        [RegularExpression("^([0,1])$", ErrorMessage = "请正确输入标记：0=取消点赞；1=添加点赞")]//大于0正则表达式
        [Required]
        public int star_status { get; set; }
    }
}